package org.jeecg.modules.InveotoryCenter.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.InveotoryCenter.entity.InveotoryEntity;
import org.jeecg.modules.InveotoryCenter.entity.piciEntity;
import org.springframework.stereotype.Component;

import java.util.HashMap;

@Component
public interface InveotoryQueryMapper {
    IPage<InveotoryEntity> getInveotoryQuerylist(Page<InveotoryEntity> page);


    //通过商品id查询一些商品的详情信息
    HashMap<String, String> getGoodsdetailbyId(@Param("goodsId") String goodsId);

    //通过商品id查询一些面料的详细信息
    HashMap<String, String> getFabricdetailbyId(@Param("goodsId") int goodsId);

    //通过库存id查询
    IPage<piciEntity> getpiciListBykucunId(Page<piciEntity> page,@Param("merchandiseInventoryId")  String merchandiseInventoryId);

    //查询商品详情
    InveotoryEntity getGoodsDetail(@Param("merchandiseInventoryId") String merchandiseInventoryId);

    //查询面料详情
    InveotoryEntity getFabricDetail(@Param("merchandiseInventoryId")  String merchandiseInventoryId);

    //统计一下总数
    String tongjiSum(@Param("merchandiseInventoryId") String merchandiseInventoryId);
}
